/**
 * 获取门店分类列表数据
 * @param {*} body
 * @returns
 */
export const useLoadShopCategoryList = (body) => {
    return useHttpPost("/shopsCategory/getShopsCategoryList",{body})
}


/**
 * 获取所有门店分类
 * @param {*} body
 * @returns
 */
export const useLoadAllShopCategoryLists = () => {
    return useHttpPost("/shopsCategory/getAllShopsCategoryList",{})
}




/**
 * 根据ID获取商品列表
 * @param {*} id
 * @returns
 */
export const useGetShopsCategoryById = (id) => {
    return useHttpPost("/shopsCategory/get/"+id,{})
}


/**
 * 新增商品
 * @param {*} body
 * @returns
 */
export const useSaveShopsCategory = (body) => {
    return useHttpPost("/shopsCategory/add",{body})
}


/**
 * 修改商品
 * @param {*} body
 * @returns
 */
export const useUpdateShopsCategory = (body) => {
    return useHttpPost("/shopsCategory/update",{body})
}


/**
 * 删除商品
 * @param {*} id
 * @returns
 */
export const useDeleteShopsCategory = (id) => {
    return useHttpPost("/shopsCategory/delete/"+id,{})
}


/**
 * 修改状态
 * @param {*} id
 * @returns
 */
export const useUpdateStatusShopsCategory = (body) => {
    body.field  = C2B( body.field)
    return useHttpPost("/shopsCategory/update/status",{body})
}
